<?php 
session_start();
include("../class/init.php");
include("sessioncontrol.php");
validateSession();
include("commonquery.php");
include("function.php");
validateUserPage();
$page ="";if(isset($_GET["page"])) $page = $_GET["page"];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" type="text/css" href="tabcontent.css" />
<link href="../js/facefiles/facebox.css" media="screen" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title> <?php echo ucfirst($page)." | ".$SITENAME; ?> CPanel</title>

<link href="../theme/admin/style/main.css" rel="stylesheet" type="text/css" />
</head>
<body> 
    <script language="JavaScript" type="text/javascript" src="../js/admin_js.php"></script>

<script type="text/javascript">
    jQuery(document).ready(function($) {
      $('a[rel*=facebox]').facebox() 
    })
</script>


<div id="banner">
    <div style="" class="login_user">
                Welcome <span class="redtxt"><?php echo $_SESSION['maUserAdmin'];?></span>
				        <span class="smalltxt"> login as</span>  
						<?php echo   $_SESSION['maUserGrp']; ?> 
						<span class="smalltxt"><a href="../admin/?logout" style="color:red" onclick="return confirm('Would you like to LOGOUT - <?php echo $_SESSION['maUserAdmin'];?>');">Logout</a></span>
	</div>
    <h2><?php echo $SITENAME; ?>  Administrative Panel </h2>
</div>
<div id="mainbody">
	<?php  include($pageFile)?>
</div>
<div id="footer">Footer</div>


</body>
</html>
